﻿namespace DataServer.ApplicationLib.Rules
{
    public static class RuleVerifyFactory
    {
        public static IRuleVerify? CreateVerify(CreateRuleVerifyInput input)
        {
            IRuleVerify? ruleVerify = null;
            switch (input.TemplateCode)
            {
                case RuleTemplate.ProcedureRuleCode:
                    ruleVerify = ProcedureRuleVerifyFactory.CreateVerify(input);
                    break;
                default:
                    ruleVerify = NoNeedRuleVerifyFactory.CreateVerify(input);
                    break;
            }
            return ruleVerify;
        }
    }
}
